//自动上传代码到服务器
var client = require('scp2')
client.scp('./dist/admin_index.html', {
    host: '81.71.4.244',
    username: 'root',
    password: 'Kiss1001',
    path: '/thinkjs/view/'
}, function (err) {
    if (err) {
        console.log(err);
    } else {
        console.log("上传成功");
    }
})